package io.gitee.mingbaobaba.apijson.querycondition.query.template.mapping;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;

/**
 * <p>结果映射策略</p>
 */
public interface ResultMapper {

    <T> T map(JSONObject source, Class<T> targetType);

    <T> T map(JSONObject source, TypeReference<T> typeReference);

    <T> T map(JSONObject source, JSONObject target);
}

